// pages/mine/store_admin/xiaji.js
Page({

  data: {   value:'',url:''

  },

  onLoad: function (options) {
       this.geterweiwa()
  },
  sureedit(){
      console.log(111);
      
  },
  change1(e){
    this.setData({
      value:e.detail.value
    })
  },
  sureedit(){
    wx.request({
      url: 'https://zujieba.com/Api/bind/bind.html',
      data:{code:this.data.value,uid:wx.getStorageSync('uid')},
      success:(res)=>{
        console.log(res);
        
      }
    })
  },
   geterweiwa(){
     wx.request({
       url: 'https://zujieba.com/Api/erweima/pic.html',
       data:{id:wx.getStorageSync('uid')},
       method:'POST',
       success:(res)=>{
         console.log(res);
         let url='https://zujieba.com/file_index/'+res.data.data
         this.setData({url})
       }
     })
   }

})